Skip to content

Comments

расстановки ферзей#3

Open
Andrew-Kochanov wants to merge 4 commits intomainfrom
hw_4
Open

расстановки ферзей#3
Andrew-Kochanov wants to merge 4 commits intomainfrom
hw_4

Conversation

@Andrew-Kochanov
Copy link
Owner

No description provided.

@Andrew-Kochanov Andrew-Kochanov requested a review from KubEF October 9, 2025 21:00
Copy link
Collaborator

@KubEF KubEF left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А где остальные реализации? А где файл complexity.md? Попытка уложиться в дедлайн успехом не увенчалась

Comment on lines +1 to +17
# import itertools

# def is_valid(positions):
# for i in range(len(positions)):
# for j in range(i + 1, len(positions)):
# if abs(positions[i] - positions[j]) == j - i:
# return False
# return True

# def count_n_queens_bf(N):
# count = 0
# for perm in itertools.permutations(range(N)):
# if is_valid(perm):
# count += 1
# return count
#N = 4 # пример для N=8
#print(count_n_queens_bf(N))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Этого быть не должно

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants